package com.itheima.d3_log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class logDemo {
    private  static  final Logger LOGGER = LoggerFactory.getLogger(logDemo.class);
    public static void main(String[] args) {
        Age(60);

    }

    public static void Age(int age){
        if(age ==60){
            LOGGER.error("年龄有误");
        }
        LOGGER.info("年龄正确");
    }
}
